<?php
/**
*
* @package {PACKAGENAME}
* @version $Id: $
* @copyright (c) 2008 Alejandro Darío Simi
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('__FUNCTIONS_PHP__')) {
define('__FUNCTIONS_PHP__', ' ');

/**
 * @ignore
 */
include 'config.php';
include 'phpbb.includes.'.$phpEx;

/**
 * @ignore
 * Defined Functions:
 *	- connect_database()
 *	- 
 *	- 
 *	- 
 *	- 
 *	- 
 *	- 
 *	- 
 */

/**
 * void connect_database()
 * makes the connection with the database using the system configuration.
 */
function connect_database()
{
	global	$db;
	global	$dbhost;
	global	$dbuser;
	global	$dbpasswd;
	global	$dbname;
	global	$dbport;
	global	$sql_db;

	if (!$db)
	{
		$db = new $sql_db();
		$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false);
	}

	// We do not need this any longer, unset for safety purposes
	unset($dbpasswd);
}

} // __FUNCTIONS_PHP__ //
?>